package com.example.demo6.SQLite;

import androidx.room.ColumnInfo;
import androidx.room.Entity;
import androidx.room.PrimaryKey;

@Entity(tableName = "User")
public class User {
    @PrimaryKey
    @ColumnInfo(name = "userid",typeAffinity = ColumnInfo.INTEGER)
    private int userid;
    @ColumnInfo(name = "username",typeAffinity = ColumnInfo.TEXT)
    private String username;
    @ColumnInfo(name = "password",typeAffinity = ColumnInfo.TEXT)
    private String password;
    @ColumnInfo(name = "phone",typeAffinity = ColumnInfo.INTEGER)
    private long  phone;
    @ColumnInfo(name = "region",typeAffinity = ColumnInfo.TEXT)
    private String region;

    public int getUserid() {
        return userid;
    }

    public void setUserid(int userid) {
        this.userid = userid;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public long  getPhone() {
        return phone;
    }

    public void setPhone(long  phone) {
        this.phone = phone;
    }

    public String getRegion() {
        return region;
    }

    public void setRegion(String region) {
        this.region = region;
    }

    public User(int userid, String username, String password, long  phone, String region) {
        this.userid = userid;
        this.username = username;
        this.password = password;
        this.phone = phone;
        this.region = region;
    }
}